package com.hb.unic.core.async.impl;

import java.io.Serializable;

import com.hb.unic.core.context.support.AbstractContext;

import lombok.Getter;

/**
 * 异步消息
 *
 * @since v1.0，2023/8/28 22:16，create by Mr.Huang.
 */
@Getter
public class AsyncMessage extends AbstractContext {

    /**
     * 消息类型
     */
    private final String messageType;

    /**
     * 消息内容
     */
    private final Serializable content;

    public AsyncMessage(String messageType, Serializable content) {
        this.messageType = messageType;
        this.content = content;
    }
}
